package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 钥匙取用记录对象 p_key_record
 * 
 * @author ruoyi
 * @date 2025-08-09
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "p_key_record")
@Data
public class PKeyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 柜子编号 */
    @Excel(name = "柜子编号")
    private String sid;

    /** 钥匙编号 */
    @Excel(name = "钥匙编号")
    private String keyNo;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String optType; //0:归还钥匙  1:获取钥匙

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regTime;

    /** 上一次记录的ID */
    private String devRecId;


}
